package com.itheima.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.Result;
import com.itheima.service.MemberService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/report")
public class MemberController {
    @Reference
    private MemberService memberService;
    @RequestMapping("/getMemberReport")
    public Result getMemberReport(){
        List<Integer> list = memberService.findAgeCount();
        return new Result(true,"",list);
    }
}
